/**
 * 
 */
package com.gr.staffpm.model;

import org.apache.wicket.model.IModel;


/**
 * @author Graham Rhodes 24 Dec 2010 12:02:32
 */
public class StringModel implements IModel<String> {


    private static final long serialVersionUID = 1L;
    private String value;

    public StringModel(String value) {
        this.value = value;
    }

    /* (non-Javadoc)
     * @see org.apache.wicket.model.IDetachable#detach()
     */
    @Override
    public void detach() {

    }

    /* (non-Javadoc)
     * @see org.apache.wicket.model.IModel#getObject()
     */
    @Override
    public String getObject() {
        return value;
    }

    /* (non-Javadoc)
     * @see org.apache.wicket.model.IModel#setObject(java.lang.Object)
     */
    @Override
    public void setObject(String value) {
        this.value = value;
    }

}
